<template>
	<view class="content">
		<u--form labelPosition="left" :model="formData" ref="uForm" labelWidth="80">
			<u-form-item label="姓名" prop="name" borderBottom>
				<u--input v-model="formData.name" border="none" placeholder="请输入姓名"></u--input>
			</u-form-item>
			<u-form-item label="详细地址" prop="address" borderBottom>
				<u--input v-model="formData.address" border="none" placeholder="请输入详细地址"></u--input>
			</u-form-item>
			<u-form-item label="详情" prop="content" borderBottom>
				<u--textarea v-model="formData.content" placeholder="请输入详情" border="none"></u--textarea>
			</u-form-item>
			<u-button type="primary" text="提交" @click="submit" class="btn"></u-button>
		</u--form>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				formData: {
					name: '',
					address: '',
					content: ''
				},
			}
		},
		methods: {
			submit() {
				console.log(this.formData)
			},
		},
	}
</script>

<style lang="scss" scoped>
	.content {
		padding: 40rpx;
		display: flex;
		flex-direction: column;

		.u-form {
			display: flex;
			flex-direction: column;
		}

		.u-form-item {
			margin-bottom: 20rpx;
		}

		.btn {
			margin-top: 20rpx;
		}
	}
</style>